﻿// =================================================================== 
// 项目说明,功能实体类,用CodeSmith自动生成。
// =================================================================== 
// 文件名: KeywordsEntity.cs
// 修改时间：2020-9-8 10:40:04
// 修改人: lixiong
// =================================================================== 
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using JX.Infrastructure.Attribute;
using JX.Infrastructure.Common;

namespace JX.Core.Entity
{
	/// <summary>
	/// 数据库表：Keywords 的实体类.
	/// </summary>
	[Table("Keywords")]
	public partial class KeywordsEntity
	{
		#region Properties
		private int? _keywordID = 0;
		/// <summary>
		/// 关键字ID(主键)(自增长)
		/// </summary>
		[Column("KeywordID",TypeName="int")]
		[Key]
		[MyFlag("Identity")]
		public int? KeywordID
		{
			get {return _keywordID;}
			set {_keywordID = value;}
		}
		
		private System.String _keywordText = string.Empty;
		/// <summary>
		/// 关键字名称
		/// </summary>
		[Column("KeywordText",TypeName="nvarchar(200)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String KeywordText
		{
			get {return _keywordText;}
			set {_keywordText = value;}
		}
		
		private int? _keywordType = 0;
		/// <summary>
		/// 关键字类别
		/// </summary>
		[Column("KeywordType",TypeName="int")]
		public int? KeywordType
		{
			get {return _keywordType;}
			set {_keywordType = value;}
		}
		
		private int? _priority = 0;
		/// <summary>
		/// 关键字优先级
		/// </summary>
		[Column("Priority",TypeName="int")]
		public int? Priority
		{
			get {return _priority;}
			set {_priority = value;}
		}
		
		private int? _hits = 0;
		/// <summary>
		/// 关键字使用量
		/// </summary>
		[Column("Hits",TypeName="int")]
		public int? Hits
		{
			get {return _hits;}
			set {_hits = value;}
		}
		
		private DateTime? _lastUseTime = null;
		/// <summary>
		/// 关键字最后使用时间
		/// </summary>
		[Column("LastUseTime",TypeName="datetime")]
		public DateTime? LastUseTime
		{
			get {return _lastUseTime;}
			set {_lastUseTime = value;}
		}
		
		private int? _generalID = 0;
		/// <summary>
		/// 关键字对应的内容ID
		/// </summary>
		[Column("GeneralID",TypeName="int")]
		public int? GeneralID
		{
			get {return _generalID;}
			set {_generalID = value;}
		}
		
		private int? _quoteTimes = 0;
		/// <summary>
		/// 关键字被引用的次数
		/// </summary>
		[Column("QuoteTimes",TypeName="int")]
		public int? QuoteTimes
		{
			get {return _quoteTimes;}
			set {_quoteTimes = value;}
		}
		
		#endregion
	}
}
